package com.example.demo.design.creational.builder;

/**
 * 抽象建造者：包含创建产品各个子部件的抽象方法。
 *
 * @author luowj12
 * @since 2021/5/8 10:45
 */
public abstract  class Builder {

    //创建产品对象
    protected Product product = new Product();
    public abstract void buildPartA();
    public abstract void buildPartB();
    public abstract void buildPartC();
    //返回产品对象
    public Product getResult() {
        return product;
    }

}
